<?php // Change the css classes to suit your needs    

$attributes = array('class' => '', 'id' => '');
echo form_open('candidate/submit', $attributes); ?>

<p>
        <label for="cand_name">Cand_name</label>
        <?php echo form_error('cand_name'); ?>
        <br /><input id="cand_name" type="text" name="cand_name" maxlength="75" value="<?php echo set_value('cand_name'); ?>"  />
</p>

<p>
        <label for="position_id">Position_id</label>
        <?php echo form_error('position_id'); ?>
        
        <?php // Change the values in this array to populate your dropdown as required ?>
        <?php $options = $positionList; ?>

        <br /><?=form_dropdown('position_id', $options, set_value('position_id',$default_pos))?>
</p>                                             
                        
<p>
        <label for="cand_desc">Cand_desc</label>
	<?php echo form_error('cand_desc'); ?>
	<br />
							
	<?=form_textarea( array( 'name' => 'cand_desc', 'rows' => '5', 'cols' => '80', 'value' => set_value('cand_desc') ) )?>
</p>

<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>
